
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body class="Style">


<?php

include("config.php");

$link = mysql_connect($host, $user, $pass) or die ("Keine Verbindung zu der Datenbank möglich.");
mysql_select_db($db, $link);


$test = "SELECT * FROM gameobject_names_localized";
$result = mysql_query($test);


    function convert_charset($result)
    {
        if ($unserialize = unserialize($result))
        {
            foreach ($unserialize as $key => $value)
            {
                $unserialize[$key] = @iconv('windows-1256', 'UTF-8', $value);
            }
            $serialize = serialize($unserialize);
            return $serialize;
        }
        else
        {
            return @iconv('windows-1256', 'UTF-8', $result);
        }
    }
?>

<p>
<table border="0" align="center">
  <tr>
<th>GameObject Name</th>
<th>Entry ID</th>
</tr>
 <?
  while($row = mysql_fetch_array($result))
  {
     echo '<tr>',
            '<td>'.$row['name'].'</td>',
            '<td>'.$row['entry'].'</td>',
          '</tr>';
  }
  ?> 
</table>
</p>


</body>
</html>



